package com.sky.service;
import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @author 符健清
 * @version 1.0
 * 用户购物车
 */
@SuppressWarnings({"all"})
public interface UserShopCarService {

    /**
     * 添加购物车
     *
     * @param shoppingCartDTO
     */
    void insertShoppingCar(ShoppingCartDTO shoppingCartDTO);

    /*
    *  查看购物车
     */
    List<ShoppingCart> selectShppingCart();

    /**
     * 清空购物车
     */
    void cleanShoppingCarts();

    /**
     * 购物车数量 减 1
     * @param shoppingCartDTO
     */
    void deleteShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
